package com.jjvu.news.service.impl;

import com.jjvu.news.dao.Sys_user;
import com.jjvu.news.domain.UserDao;
import com.jjvu.news.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    public boolean findSys_UserByNameAndPassword(Sys_user sys_user) {
        Sys_user user = userDao.findSys_UserByNameAndPassword(sys_user);
        if (user!=null){
            return true;
        }
        return false;
    }
}
